package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import com.huawei.support.widget.HwBottomNavigationView;
import java.lang.ref.WeakReference;

public class flx extends SkinAttr {

    static final class a extends fkz<SkinAttr, Drawable> {
        private WeakReference<HwBottomNavigationView> ˊ;

        public /* synthetic */ void ॱ(Object obj) {
            ˏ((Drawable) obj);
        }

        private a(HwBottomNavigationView hwBottomNavigationView) {
            this.ˊ = new WeakReference(hwBottomNavigationView);
        }

        public void ˏ(Drawable drawable) {
            HwBottomNavigationView hwBottomNavigationView = (HwBottomNavigationView) this.ˊ.get();
            if (hwBottomNavigationView != null) {
                fkx.ॱ(hwBottomNavigationView, drawable);
            }
        }
    }

    public flx() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwBottomNavigationView) {
            HwBottomNavigationView hwBottomNavigationView = (HwBottomNavigationView) view;
            if ("drawable".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "drawable";
                fks.ˎ(view.getContext(), this, new a(hwBottomNavigationView)).ॱ(z);
            }
        }
    }
}
